<?php
/**
 * Created by PhpStorm.
 * User: myq
 * Date: 2018/7/20
 * Time: 22:04
 */


    include("../dao/dao.php");
    $results = array_merge($_POST,$_GET);
    if (empty($results['jinzi'])){
        $fanhui= array('flag'=>0, 'msg'=>'不能为空');
    }else{
        upload($results['jinzi']);
        $fanhui= array('flag'=>1, 'msg'=>'成功');
    }
    echo json_encode($fanhui);
